package com.spider;

import com.spider.beans.Offer;
import com.spider.parsers.AliParser;
import com.spider.utils.ExcelUtil;
import com.spider.values.AliSortType;

import java.util.List;

public class Start {
    public static void main(String[] args) {
        AliParser aliParser = new AliParser();

        List<Offer> offers = aliParser.getAll("拖鞋", 1, 5, 10, AliSortType.TURNOVER);

        String[] strings = new String[]{"商品标题", "详细信息", "商品链接", "图片链接"};
        new ExcelUtil().createExcel("test", strings, offers);
    }
}
